﻿using System;
using System.Windows.Forms;

namespace Vwlab
{
    public class Error
    {
        public DialogResult setError(string text, string caption = "Ошибка", MessageBoxButtons buttons = MessageBoxButtons.OK, MessageBoxIcon icon = MessageBoxIcon.Error)
        {
            return MessageBox.Show(text, caption, buttons, icon);
        }

        public DialogResult setQuestion(string text, string caption = "", MessageBoxButtons buttons = MessageBoxButtons.YesNo, MessageBoxIcon icon = MessageBoxIcon.Question)
        {
            return MessageBox.Show(text, caption, buttons, icon);
        }
    }
}